<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../js/css/layui.css">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
    <div class="layui-tab-content">

        <div class="layui-tab-item layui-show">
            <form class="layui-form" action="">
                <div class="amin-content">
                    <div class="layui-row layui-col-space15">

                        <div class="layui-col-md12">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">用户名</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="title" lay-verify="required|title" autocomplete="off" placeholder="用户名必须2到12位字母" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">邮箱</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="title" lay-verify="required|title" autocomplete="off" placeholder="请输入正确邮箱格式" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">角色</label>
                                    <div class="layui-input-inline">
                                        <select name="interest" lay-filter="aihao">
                                            <option value=""></option>
                                            <option value="0">推荐</option>
                                            <option value="0">不推荐</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">手机号码</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="title" lay-verify="required|title" autocomplete="off" placeholder="请输入正确的手机号码" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">性别</label>
                                    <div class="layui-input-inline">
                                        <input type="radio" name="sex" value="审核" title="男" checked="">
                                        <input type="radio" name="sex" value="待审核" title="女">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">密码</label>
                                    <div class="layui-input-inline">
                                        <input type="password" name="title" lay-verify="required|title" autocomplete="off" placeholder="请输入6到12为数字加字母密码" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">确认密码</label>
                                    <div class="layui-input-inline">
                                        <input type="password" name="title" lay-verify="required|title" autocomplete="off" placeholder="确认密码" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
<script src="../layui.all.js"></script>
<script>
    layui.use('layedit',function () {
        var layedit = layui.layedit;
        var publish_time = layui.laydate;
        var colorpicker  = layui.colorpicker;
        var $ = layui.$
            ,colorpicker = layui.colorpicker;
        var upload =layui.upload;
        upload.render({
            elem: '#test10'
            ,url: '../images/'
            ,done: function(res){
                console.log(res)
            }
        });
        colorpicker.render({
            elem: '#test-form' //绑定元素
            ,color:'#1c97f5'
            ,done: function(color){ //颜色改变的回调
                $("#test-form-input").val(color);
            }
        });
        publish_time.render({
            elem: "#date"
            ,type: 'datetime'
        });
        layedit.build('demo');
    });




</script>

</body>
</html>